{% extends base.html %}

{% block body %}

<div>

<div>
    <h3>资料整理 [{% for item in pathlist %} {{item.name}} / {% end %}]</h3>
    <p>修改类型
        <a class="btn" href="/file/archive/change_type?id={{id}}&type=group">转为分组</a>
        <a class="btn" href="/file/archive/change_type?id={{id}}&type=md">转为MD</a>
    </p>
</div>
<form>
    <div>
        移动到
        <input name="id" class="hide" value="{{id}}"/>
        <input name="name" value="{{name}}"/>
        <button>搜索</button>
    </div>
</form>
</div>

<div>
{% for file in filelist %}
    <div>
    <a href="/file/archive?id={{id}}&parent_id={{file.id}}">[移动到这里]</a><span>{{file.name}}</span>
    </div>
{% end %}
</div>

{% end %}